<style type="text/css">
    .nav-tabs{
        background-color:#F6F6F6;
    }
    .nav-tabs > li > a{
        color:#555 !important;
    }
    .nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus{
        color:#4E76FB !important;
    }
    .btn-list {
        position: fixed;
        right: 40px;
    }
    .div-flex {
        display: flex
    }
    .div-flex .form-group {
        margin-right: 50px;
        text-align: center;
        line-height: 25px;
        margin-bottom: 0;
    }
    .tab-pane {
        border: 1px solid #F6F6F6;
    }
    .i-color {
        font-size: 34px;margin-right: 10px;color: #86C3FF;
    }
    .thumbnail {
        display: flow-root;
        width: max-content;
    }
    .thumbnail img {
        width: 50px;
        float: left;
        padding: 5px;
    }
    .text-color{
        color:#777;
    }
    .examine_title{
        font-size: 14px;
        color: #333;
        -webkit-box-flex: 1;
        -ms-flex: 1;
        flex: 1;
        display: block;
        height: 30px;
    }
    .examine_box{
        padding-left:20px;
        position: relative;
    }
    .examine_box .newicon{
        position: absolute;
        left:0;
        top:0;
        z-index: 2;
    }
    .examine_box .xian{
        width:1px;
        height:100%;
        background:#e6e6e6;
        position: absolute;
        left:4px;
        top:10px;
        z-index: 1;
    }
    .examine_box .examine_bg{
        position: relative;
        margin-top: 15px;
        border-radius: 4px;
        background-color: #f7f8fa;
        font-size: 12px;
        color: #929293;
        padding: 8px;
        line-height: 18px;
    }
    .rowbox{
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }
    .stafflist{
        width: 70px;text-align: center;float: left;
    }
    .stafflist-right{
        width: 30px;text-align: center;float: left;margin: 0 20px;

    }
    .stafflist-right:last-child{
        display: none;
    }
    .stafflist img{
        width: 40px;
        height: 40px;
        margin: 10px;
        border-radius:50%;
    }
    .user-image{
        width: 40px;
        height: 40px;
        border-radius: 50%;

    }
</style>
<div class="panel panel-default panel-intro">
    <input type="hidden" name="ids" id="ids" value="{$ids}"/>
    <div>
        <div class="div-flex">
            <div style="line-height: 35px">
                <div style="font-size: 18px;font-weight: 600;">{$row.name}</div>
            </div>
            <div class="btn-list">
                {if $auth->check('project_assess/edit') && in_array($row.admin_id, $childrenAdminIds)}
                <a class="btn btn-success" data-toggle="dropdown" id="edits">编辑</a>
                {/if}
            </div>
        </div>
        <div style="display: flex;justify-self: self-end;"><div> {$row.admin.nickname} 创建于 {:date('Y-m-d H:i:s', $row.createtime)}</div></div>
    </div>

    <div style="margin-top: 10px">
    </div>
    <div>
        <ul class="nav nav-tabs" role="tablist">
            <li role="presentation" class="active"><a href="#basic" aria-controls="profile" role="tab" data-toggle="tab">详情</a></li>
        </ul>

        <div class="tab-content" style="overflow-y: scroll;height:565px">
            <div role="tabpanel" class="tab-pane active in fade panel-body form-horizontal" id="basic">
                <div class="form-group">
                    <div class="col-xs-6 col-sm-5">
                        <div class="form-group col-sm-10">
                            <span class="text-muted">{:__('Code')}:</span>
                            <span class="text-black">{$row.code}</span>
                        </div>
                    </div>
                    <div class="col-xs-6 col-sm-5">
                        <div class="form-group col-sm-10">
                            <span class="text-muted">{:__('Name')}:</span>
                            <span class="text-black">{$row.name}</span>
                        </div>
                    </div>
                    <div class="col-xs-6 col-sm-5">
                        <div class="form-group col-sm-10">
                            <span class="text-muted">{:__('Description')}:</span>
                            <span class="text-black">{$row.description}</span>
                        </div>
                    </div>
                    <div class="col-xs-6 col-sm-5">
                        <div class="form-group col-sm-10">
                            <span class="text-muted">{:__('Catename')}:</span>
                            <span class="text-black">{$row.catename}</span>
                        </div>
                    </div>
                    <div class="col-xs-6 col-sm-5">
                        <div class="form-group col-sm-10">
                            <span class="text-muted">{:__('Unit')}:</span>
                            <span class="text-black">{$row.unit}</span>
                        </div>
                    </div>
                    <div class="col-xs-6 col-sm-5">
                        <div class="form-group col-sm-10">
                            <span class="text-muted">{:__('Quantity')}:</span>
                            <span class="text-black">{$row.quantity}</span>
                        </div>
                    </div>
                    <div class="col-xs-6 col-sm-5">
                        <div class="form-group col-sm-10">
                            <span class="text-muted">{:__('Tax')}:</span>
                            <span class="text-black">{$row.tax}</span>
                        </div>
                    </div>
                    <div class="col-xs-6 col-sm-5">
                        <div class="form-group col-sm-10">
                            <span class="text-muted">{:__('Reference_price')}:</span>
                            <span class="text-black">{$row.reference_price}</span>
                        </div>
                    </div>
                    <div class="col-xs-6 col-sm-5">
                        <div class="form-group col-sm-10">
                            <span class="text-muted">{:__('Unit_price')}:</span>
                            <span class="text-black">{$row.unit_price}</span>
                        </div>
                    </div>
                    <div class="col-xs-6 col-sm-5">
                        <div class="form-group col-sm-10">
                            <span class="text-muted">{:__('Total_price')}:</span>
                            <span class="text-black">{$row.total_price}</span>
                        </div>
                    </div>
                </div>
                <div style="margin: 10px;font-size: 17px; font-weight: 550;">所属项目</div>
                <div class="bootstrap-table">
                    <div class="panel panel-info  fixed-table-body">
                        <table class="table table-striped table-bordered table-hover table-nowrap" width="100%">
                            <thead>
                                <tr>
                                    <th>{:__('Project_name')}</th>
                                    <th>{:__('Project_address')}</th>
                                    <th>{:__('Pricing_date')}</th>
                                    <th>{:__('Project_class')}</th>
                                    <th>{:__('Project_bulid_cost')}</th>
                                    <th>{:__('Project_scale')}</th>
                                    <th>{:__('Build_unit')}</th>
                                    <th>{:__('Construction_unit')}</th>
                                    <th>{:__('Structure_type')}</th>
                                    <th>{:__('Build_cost_type')}</th>
                                    <th>{:__('Build_form')}</th>
                                    <th>{:__('Taxation_type')}</th>
                                    <th>{:__('Contract_name')}</th>
                                    <th>{:__('Contract_no')}</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td><a href='javascript:void(0);' style='color: #4397fd' class='btn-dialog' 
                                        data-url='project/detail/ids/{$row.project_id}' data-title='项目详情' data-area='["100%","100%"]' >{$row.project.project_name}</a></td>
                                    <td>{$row.project.project_address}</td>
                                    <td>{$row.project.pricing_date}</td>
                                    <td>{$projectConfig.project_class[$row.project.project_class] ?? ''}</td>
                                    <td>{$row.project.project_bulid_cost}</td>
                                    <td>{$row.project.project_scale}</td>
                                    <td>{$row.project.build_unit}</td>
                                    <td>{$row.project.construction_unit}</td>
                                    <td>{$projectConfig.structure_type[$row.project.structure_type] ?? '-'}</td>
                                    <td>{$projectConfig.build_cost_type[$row.project.build_cost_type] ?? '-'}</td>
                                    <td>{$projectConfig.build_form[$row.project.build_form] ?? '-'}</td>
                                    <td>{$projectConfig.taxation_type[$row.project.taxation_type] ?? '-'}</td>
                                    <td>{$row.project.contract_name}</td>
                                    <td>{$row.project.contract_no}</td>

                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>

    </div>
</div>